package com.yanqu.road.entity.monopolymarket.fortress;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;


/**
 * @Description 榷场商会战 联盟排名信息
 * @Author cwq
 * @Data 2021/10/15 16:29
 */
@FieldTypeAnnotation(tableName = "t_c_monopolymarket_fortress_rank")
public class MonopolyMarketFortressRankData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "分组id")
    private long groupId;
    @FieldTypeAnnotation(select = true, update = true,desc = "周id，例如 每周一的时间 20211011")
    private int weekId;
    @FieldTypeAnnotation(select = true, update = true,desc = "要塞id")
    private int fortressId;
    @FieldTypeAnnotation(select = true, update = true,desc = "联盟id")
    private String unionId="";
    @FieldTypeAnnotation(desc = "总值")
    private long totalValue;
    @FieldTypeAnnotation(desc = "最后一次赚钱值变动时间")
    private int updateTime;
    @FieldTypeAnnotation(desc = "排名")
    private int rank = -1;

    public long getGroupId() {
        return groupId;
    }
    public void setGroupId(long groupId) {
        if (this.groupId != groupId) {
            this.groupId = groupId;
            setOp(DataStatus.Update);
        }
    }

    public int getWeekId() {
        return weekId;
    }
    public void setWeekId(int weekId) {
        if (this.weekId != weekId) {
            this.weekId = weekId;
            setOp(DataStatus.Update);
        }
    }

    public int getFortressId() {
        return fortressId;
    }
    public void setFortressId(int fortressId) {
        if (this.fortressId != fortressId) {
            this.fortressId = fortressId;
            setOp(DataStatus.Update);
        }
    }

    public String getUnionId() {
        return unionId;
    }
    public void setUnionId(String unionId) {
        if (unionId == null){
            return;
        }
        if (this.unionId == null || !this.unionId.equals(unionId)) {
            this.unionId = unionId;
            setOp(DataStatus.Update);
        }
    }

    public long getTotalValue() {
        return totalValue;
    }
    public void setTotalValue(long totalValue) {
        if (this.totalValue != totalValue) {
            this.totalValue = totalValue;
            setOp(DataStatus.Update);
        }
    }

    public int getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(int updateTime) {
        if (this.updateTime != updateTime) {
            this.updateTime = updateTime;
            setOp(DataStatus.Update);
        }
    }

    public int getRank() {
        return rank;
    }
    public void setRank(int rank) {
        if (this.rank != rank) {
            this.rank = rank;
            setOp(DataStatus.Update);
        }
    }
}
